Skip to content

Conversation

@mibeco
Copy link
Contributor

@mibeco mibeco commented Oct 29, 2025

The delegate tool was not properly checking user approval responses. When get_user_confirmation() returned Ok(false) (user declined), the ? operator would not trigger an error, allowing delegation to proceed despite user denial.

This fix explicitly checks the boolean return value and returns an error when the user declines, preventing unauthorized delegation.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The delegate tool was not properly checking user approval responses.
When get_user_confirmation() returned Ok(false) (user declined),
the ? operator would not trigger an error, allowing delegation
to proceed despite user denial.

This fix explicitly checks the boolean return value and returns
an error when the user declines, preventing unauthorized delegation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant